#ifndef NGRAM_LM_
#define NGRAM_LM_

#include"../../process.h"
#include "language_model.h"

class NgramLanguageModel : public LanguageModel
{
	private:
		int gram;
		map<string, int> model;
	public:
		NgramLanguageModel(int gram);
		NgramLanguageModel(int gram, string info);
		void load(string line);
		double prob(string query);
		double prob(string query, map<string, int> &lm);
};
#endif